package net.vkits.api;

import io.swagger.annotations.*;
import net.vkits.common.dto.HistoryOrder;
import net.vkits.common.dto.Order;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-27T05:49:23.577Z")

@Api(value = "order", description = "the order API")
@RequestMapping("/api/v2")
public interface OrderApi {

    @ApiOperation(value = "add order", notes = "add order", response = HistoryOrder.class, tags={ "order", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "return order info", response = HistoryOrder.class),
        @ApiResponse(code = 404, message = "something wrong", response = HistoryOrder.class) })
    @RequestMapping(value = "/order",
        produces = { "application/json" }, 
        method = RequestMethod.PUT)
    ResponseEntity<HistoryOrder> addOrder(

            @ApiParam(value = "订单原始金额", required = true) @RequestBody Order order

    );


    @ApiOperation(value = "get order info", notes = "get order info", response = HistoryOrder.class, tags={ "order", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "return order info", response = HistoryOrder.class),
        @ApiResponse(code = 404, message = "something wrong", response = HistoryOrder.class) })
    @RequestMapping(value = "/order",
        produces = { "application/json" }, 
        method = RequestMethod.GET)
    ResponseEntity<HistoryOrder> orderGet(@ApiParam(value = "过滤条件", required = true) @RequestParam(value = "id", required = true) String id


    );

}
